package com.example.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 通告详细信息对象 announcement_details
 * 
 * @author 何曼伶
 * @date 2024-12-11
 */
public class AnnouncementDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 通告ID */
    @Excel(name = "通告ID")
    private Long announcementId;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long recipientId;

    /** 发送方式 */
    @Excel(name = "发送方式")
    private String deliveryMethods;

    /** 回复方式 */
    @Excel(name = "回复方式")
    private String replySetting;

    /** 阅读状态 */
    @Excel(name = "阅读状态")
    private String readStatus;

    /** 阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAnnouncementId(Long announcementId) 
    {
        this.announcementId = announcementId;
    }

    public Long getAnnouncementId() 
    {
        return announcementId;
    }
    public void setRecipientId(Long recipientId) 
    {
        this.recipientId = recipientId;
    }

    public Long getRecipientId() 
    {
        return recipientId;
    }
    public void setDeliveryMethods(String deliveryMethods) 
    {
        this.deliveryMethods = deliveryMethods;
    }

    public String getDeliveryMethods() 
    {
        return deliveryMethods;
    }
    public void setReplySetting(String replySetting) 
    {
        this.replySetting = replySetting;
    }

    public String getReplySetting() 
    {
        return replySetting;
    }
    public void setReadStatus(String readStatus) 
    {
        this.readStatus = readStatus;
    }

    public String getReadStatus() 
    {
        return readStatus;
    }
    public void setReadAt(Date readAt) 
    {
        this.readAt = readAt;
    }

    public Date getReadAt() 
    {
        return readAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("announcementId", getAnnouncementId())
            .append("recipientId", getRecipientId())
            .append("deliveryMethods", getDeliveryMethods())
            .append("replySetting", getReplySetting())
            .append("readStatus", getReadStatus())
            .append("readAt", getReadAt())
            .toString();
    }
}
